package com.cs.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.io.Serial;
import java.util.Date;

/**
 * @Author：bbdf
 * @Package：com.cs.domain
 * @Project：RuoYi-Cloud
 * @name：CSCodeRules
 * @Date：2024-11-11 10:46
 * @Filename：CSCodeRules
 */
public class CSCodeRules extends BaseEntity {
    @Serial
    private static final long serialVersionUID = -1658924625302292738L;
    @Excel(name = "编号生成规则id")
    Integer id;
    @Excel(name = "目标表的")
    String targetForm;
    @Excel(name = "前缀")
    String prefix;
    @Excel(name = "流水号")
    Integer serialNumber;
    @Excel(name = "步长")
    Integer step;
    @Excel(name = "编号规则")
    String codeRules;
    @Excel(name = "操作人")
    String operator;
    @Excel(name = "操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Date updateTime;
    @Excel(name = "年")
    String year;
    @Excel(name = "月")
    String mounth;
    @Excel(name = "日")
    String day;
    @Excel(name = "时")
    String hour;
    @Excel(name = "分")
    String minute;
    @Excel(name = "秒")
    String second;
    @Excel(name = "最大尾数")
    String maxMantissa;

    @Override
    public String toString() {
        return "CSCodeRules{" +
                "id=" + id +
                ", targetForm='" + targetForm + '\'' +
                ", prefix='" + prefix + '\'' +
                ", serialNumber=" + serialNumber +
                ", step=" + step +
                ", codeRules='" + codeRules + '\'' +
                ", operator='" + operator + '\'' +
                ", updateTime=" + updateTime +
                ", year='" + year + '\'' +
                ", mounth='" + mounth + '\'' +
                ", day='" + day + '\'' +
                ", hour='" + hour + '\'' +
                ", minute='" + minute + '\'' +
                ", second='" + second + '\'' +
                ", maxMantissa='" + maxMantissa + '\'' +
                '}';
    }

    public CSCodeRules() {
    }

    public CSCodeRules(Integer id, String targetForm, String prefix, Integer serialNumber, Integer step, String codeRules, String operator, Date updateTime, String year, String mounth, String day, String hour, String minute, String second, String maxMantissa) {
        this.id = id;
        this.targetForm = targetForm;
        this.prefix = prefix;
        this.serialNumber = serialNumber;
        this.step = step;
        this.codeRules = codeRules;
        this.operator = operator;
        this.updateTime = updateTime;
        this.year = year;
        this.mounth = mounth;
        this.day = day;
        this.hour = hour;
        this.minute = minute;
        this.second = second;
        this.maxMantissa = maxMantissa;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTargetForm() {
        return targetForm;
    }

    public void setTargetForm(String targetForm) {
        this.targetForm = targetForm;
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public Integer getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(Integer serialNumber) {
        this.serialNumber = serialNumber;
    }

    public Integer getStep() {
        return step;
    }

    public void setStep(Integer step) {
        this.step = step;
    }

    public String getCodeRules() {
        return codeRules;
    }

    public void setCodeRules(String codeRules) {
        this.codeRules = codeRules;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getMounth() {
        return mounth;
    }

    public void setMounth(String mounth) {
        this.mounth = mounth;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public String getHour() {
        return hour;
    }

    public void setHour(String hour) {
        this.hour = hour;
    }

    public String getMinute() {
        return minute;
    }

    public void setMinute(String minute) {
        this.minute = minute;
    }

    public String getSecond() {
        return second;
    }

    public void setSecond(String second) {
        this.second = second;
    }

    public String getMaxMantissa() {
        return maxMantissa;
    }

    public void setMaxMantissa(String maxMantissa) {
        this.maxMantissa = maxMantissa;
    }
}
